﻿{tpl head}
<script src='js/admin.js' type="text/javascript"></script> 
<form name="form1" action="" method="post">
<table class="new_table" width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
    <thead>
<tr class="n_bt"><td colspan="9" align="center">管理系统</td></tr>
  <tr>
    <td align="center"  class="thbt hr">ID</td>
    <td align="center"  class="thbt hr">选择</td>
    <td align="center"  class="thbt hr">文章标题</td>
    <td align="center"  class="thbt hr">类目</td>
    <td align="center"  class="thbt hr">发布人</td>
    <td align="center"  class="thbt hr">录入时间</td>
    <td align="center"  class="thbt hr">审核</td>
    <td align="center"  class="thbt hr">点击</td>
    <td align="center"  class="thbt">操作</td>
  </tr>
    </thead>
	<tbody>
{list show=$pagesize&ischeck=all&field=flag,writer,ischeck}
{loop $c $oj}
  <tr class="artlist">
    <td width='4%'>{$oj.id}</td>
    <td><input name="all[]" type="checkbox" id="arcID" value="{$oj.id}" class="np" /> </td>
    <td class="txtl">&nbsp;<a href="?c=article&a=mod&id={$oj.id}">{$oj.title}</a>{if $oj.flag}
        {if strpos($oj.flag,'h')}<span class="h">头条</span> {/if}
        {if strpos($oj.flag,'b')}<span class="b">加粗</span>{/if}
        {if strpos($oj.flag,'c')}<span class="c">推荐</span>{/if}
        {if strpos($oj.flag,'f')}<span class="f">幻灯</span>{/if}
        {if strpos($oj.flag,'a')}<span class="a">特荐</span>{/if}
        {if strpos($oj.flag,'s')}<span class="s">滚动</span>{/if}
        {if strpos($oj.flag,'p')}<span class="p">图片</span>{/if}
        {if strpos($oj.flag,'j')}<span class="j">跳转</span>{/if}        
		{/if}</td>
    <td><a href="?c=article&a=list&id={$oj.typeid}">{$oj.typename}</a></td>
    <td>{$oj.writer}</td>
    <td>{function=date("Y-m-d",$oj.startdate)}</td>
    <td>
    {if $oj.ischeck}
    <a href="?c=article&a=notcheck&id={$oj.id}&page={$page}" class="ok">ok</a>
    {else}
    <a href="?c=article&a=yescheck&id={$oj.id}&page={$page}" class="no">no</a>
    {/if}
    </td>
    <td>{$oj.click}</td>
    <td><a class="mod" href="?c=article&a=mod&id={$oj.id}">修改</a> <a class="del" href="?c=article&a=del&id={$oj.id}">删除</a></td>
  </tr>
  {/loop}</tbody>
</table>	
<div class="pages">{pagelist pagesize=30&nostatic=1 }</div>
<div class="xuanxiang">	
<input class="button" type="button" name="chkall" value="全选" onClick="CheckAll(this.form)">
<input class="button" type="button" name="chksel" value="反选" onClick="ContraSel(this.form)">
		管理选项：
		<select name="act" class="selecth input200" style="width:150px;">
			<option value="0">请选择操作选项</option>
			<option value="批量删除">批量删除</option>
			<option value="批量审核">批量审核</option>
			<option value="取消审核">取消审核</option>
		</select>
		<input class="button" type="submit" name="submit_button1" value="执行操作" onclick="return confirm('您确定执行该操作吗?');">
</div>
<input type="hidden" name="a" value="data_pl" >
<input type="hidden" name="page" value="{$page}">
</form>